//
//  YATaskUserRegister.m
//  YoucApi
//
//  Created by Liam on 11/17/12.
//
//

#import "YATaskUserRegister.h"
#import "YARespUserLogin.h"

@implementation YATaskUserRegister

TASK_AUTO_REGISTER(TaskUserRegister);

- (NSString *)_getUriParamA
{
	return @"user_registers";
}

- (NSInteger)apiErrorCodeFromErrorCode:(NSInteger)code
{
    switch (code) {
        case 1:
            code = YoucApiErrorUserEmailExists;
            break;
        case 2:
            code = YoucApiErrorNicknameExists;
			break;
        default:
			code = [super apiErrorCodeFromErrorCode:code];
            break;
    }
    
    return code;
}



@end
